<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>消息中心</title>
    <link rel="stylesheet"  href="src/css/base.css?__version=9.4">
    <link rel="stylesheet"  href="src/css/pages.css?__version=9.4">
    <script type="text/javascript" src="src/js/jquery-1.10.1.min.js?__version=9.4"></script>
    <script type="text/javascript" src="src/js/rem.js?__version=9.4"></script>
    <script type="text/javascript" src="src/js/dropload.js?__version=9.4"></script>
    <script type="text/javascript" src="src/js/init.js?__version=9.4"></script>

	<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="/src/js/share.js?__version=9.4"></script>
	<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?8ed2efe5b24e14f351f4d88ba2eb3462";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
</head>
<body>
	<div class="init_content" style="display: none;">
	    <div class="warp message-warp" id="htmlDataList">
		</div>
	</div>
	<div class="init_loading">
        <img src="src/img/page_loading.gif?v=1">
    </div>
</body>
<script>
addheader("系统消息","/personal.html");
dropload(".warp");
$(function(){
	checkUserLogin();

	fetchData("/OpenAPI/v1/Message/getAll",{token:token,page:1},function(data){
		var htmlDataList = '';
		for(var i = 0;i < data.list.length;i++){

			htmlDataList += '<div class="msg-item flex">';
			htmlDataList += '<img class="user-head inline-block" src="src/img/systerm.jpg">';
			htmlDataList += '<div class="inline-block msg-box">';
			htmlDataList += '<span class="block name text-theme text-beyond">梦想抓娃娃通知</span>';
			htmlDataList += '<span class="block content">'+data.list[i].content+'</span>';
			htmlDataList += '<span class="time text-color93">'+data.list[i].create_at+'</span>';
			htmlDataList += '</div>';
			htmlDataList += '</div>';
}
$("#htmlDataList").append(htmlDataList);
});

});

function getLocalTime(nS) {
	return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
}
</script>
</html>